﻿<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/core/common/top.jsp" %>
<%@ include file="/WEB-INF/core/common/taglibs.jsp" %>

<script language="javascript">

$(document).ready(function(){
	$.formValidator.initConfig({formid:"orgdataform",alertmessage:true,tidymode:true,onerror:function(msg){alert(msg)},onsuccess:function(){submitForm_ajax('orgdataform',null);return false;}});
	$("#orgId").formValidator().inputValidator({min:1,onerror:"组织机构ID不能为空,请确认"});
});


</script>
<body style="overflow-x:hidden;overflow-y:auto;" >
<form action="${ctx}/system/orgData.action" id="orgdataform" >
 	<s:if test="pageState=='add'">  
 		<s:hidden name="act" value="addSubmit"></s:hidden>
	</s:if>
	<s:if test="pageState=='edit'">
		<s:hidden name="act" value="editSubmit"></s:hidden>
	</s:if>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr width="100%">
	<td>
		<table border="0" align="center" cellpadding="0" cellspacing="0">
			<tr width="100%">
				<td width="8" height="27" align="left"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td> 
  				<td width="99%"  align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:if test="pageState=='edit'"><s:text name="parmData.modify"/><s:text name="org.record" /></s:if><s:if test="pageState=='add'"><s:text name="parmData.add"/><s:text name="org.record" /></s:if></td>
  				<td width="8" align="right"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
  			</tr>
  		</table>
  	</td>
  </tr>
  <tr>
    <td colspan="4" class="biaoge">
         <table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF">
         		  <s:iterator value="pageInfo.searchResult" id="it" status="st">
         		  </s:iterator>
                  <tr align="left">
                      <td width="6%" height="25" bgcolor="#DDE4EA">&nbsp;<s:text name="org.id" />&nbsp;</td>
                      <td width="19%" bgcolor="#DDE4EA">
                      <s:if test="pageState=='edit'">
                      	  <exts:textfield name="paramData.orgId" id="orgId" value="%{#it[0]}" class="textbox_css" style="width:150px" editState="view" outHidden="true"></exts:textfield>
                      </s:if>
                      <s:else>
                      	  <exts:textfield name="paramData.orgId" id="orgId" value="%{#it[0]}" class="textbox_css" style="width:150px" required="true"/>
		              </s:else></td>
                      <td width="6%" bgcolor="#DDE4EA">&nbsp;<s:text name="org.par.id"  />&nbsp;</td>
                      <td width="19%" bgcolor="#DDE4EA">
                          <exts:textfield name="paramData.parOrgId" value="%{#it[1]}" id="name" class="textbox_css" style="width:150px" required="false"/>
					  </td>
                      <td width="6%" bgcolor="#DDE4EA">&nbsp;<s:text name="org.status" />&nbsp;</td>
                      <td width="19%" bgcolor="#DDE4EA">
                          <exts:select list="" name="paramData.status" value="%{#it[3]}"  code="SELECT_STATUS" listKey="key" listValue="value"  required="false"></exts:select>
                      </td>       
                  </tr>
                  <tr align="left">
                      <td  bgcolor="#DDE4EA">&nbsp;<s:text name="org.name" />&nbsp;</td>
                      <td bgcolor="#DDE4EA" >
                      	<exts:textfield name="paramData.name" id="sortNum" value="%{#it[2]}"  class="textbox_css" style="width:150px" />
                      </td>
                      <td bgcolor="#DDE4EA" colspan="4"></td>
                 </tr>
                 <tr>
                      <td height="25" colspan="6" align="center">
							<input name="button22" type="submit" class="btn" value=" <s:text name='parmData.save'/> "/>
			                <input type="button" name="Button11" value=" <s:text name='parmData.return' /> " class="btn" onClick="submit_ajax('${ctx}/system/orgManager.action?act=query&busiId=searchOrg','mainframe');" />
			           </td>
                 </tr>
                 
             </table>
            </td>
          </tr>
    </table>
   </form>
</body>
